<div class="loader"></div>

@if(Session::has('message'))
	<div class="alert alert-success"><i class="fa fa-check-circle"></i> {{ Session::get('message') }}
		<button type="button" class="close" data-dismiss="alert">&times;</button>
	</div>
@endif
<h3>{{ $title }} with ID# {{ $result->id }}</h3>
<h4>{{ $text_order_id }}{{ $result->ORDER_id }} {{ $text_details_amount }} {{ sprintf('%0.2f', $result->orderInformation->points) }}</h4><br />
<h3>{{ $text_details }}</h3>
<div class="row">
	 	@if($result->orderInformation->status !=Constant::ORDER_PROCESSING)
	<a class="btn btn-info pull-right edit" href="{{ URL::to($base, array($result->id, 'edit')) }}"><i class="fa fa-pencil"></i> {{ $text_edit }}</a>
		@endif
</div>
<hr />

	<div class="bs-example">
	
	    <ul class="nav nav-tabs">
	    	@foreach($result->topupInformation as $index=>$topup_edited)
	        <li @if(!$index) class="active" @endif><a data-toggle="tab" href="#Section{{ $index }}">Reference {{ $index + 1 }}</a></li>
	        @endforeach
	    </ul>
	   
	    <div class="tab-content">
	    @foreach($result->topupInformation as $index=>$topup_edited)
	        <div id="Section{{ $index }}" class="tab-pane fade in @if(!$index) active @endif ">
	            <div class="form-group">
	             @if($result->payment_method == Constant::PAYMENT_BANK_DEPOSIT )
					{{ HTML::image(Asset::cdn($topup_edited->image),null,array('class'=>'form-control','style'=>'500px; height: 300px; overflow: hidden;')) }}
	        	 @endif
	        	</div>
				<div class="form-group">
					{{ Form::label('reference_number', $form_ref_number) }}
					{{$topup_edited->reference_number }}
					
				</div>
					<div class="form-group">
					{{ Form::label('amount', $form_amount) }}
					{{$topup_edited->amount }}
					
				</div>
					<div class="form-group">
					{{ Form::label('date', $form_deposit_time) }}
					{{$topup_edited->date }}
					
				</div>
	        </div>
	       @endforeach
	       @if(Session::has('last_action'))
				<div class="form-group">
					 {{ Form::label( $form_last_action) }} 
					{{ Session::get('last_action') }}
					
		</div>
			@endif
	    </div>
	    	
	</div>
	{{ HTML::link( URL::to($base . '/'), $text_close, array('class' => 'btn btn-default', 'id'=> 'cancel')) }}
